package com.sj.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sj.common.dto.user.AdminUserQueryParam;
import com.sj.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 孙峻
 * @since 2022-03-09
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 管理端获取用户列表
     *
     * @param page
     * @param adminUserQueryParam
     * @return
     */
    IPage<User> getAdminUserList(IPage<User> page, @Param("params") AdminUserQueryParam adminUserQueryParam);
}
